<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        .father {
            position: relative;
            width: 400px;
            height: 400px;
            background-color: pink;
            margin: 100px;
            overflow: hidden;
        }
        .son {
            position: absolute;
            left: 10px;
            top: 10px;
            width: 150px;
            height: 150px;
            background-color: purple;
        }
    </style>
    <script src="js/jQuery.min.js"></script>
</head>
<body>
    <div class="father">
        <div class="son">

        </div>
    </div>
    <script>
        $(function(){
            console.log($('.son').offset().left);
            console.log($('.son').position());
        })
    </script>
</body>
</html>